package cn.zhihong;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("cn.zhihong.mapper")
@ServletComponentScan("cn.zhihong.filter")  //加上这个注解过滤器才会生效
@EnableTransactionManagement
public class WaimaiApplication {

    public static void main(String[] args) {
        SpringApplication.run(WaimaiApplication.class, args);
        System.out.println("==============启动成功===============");
    }

}
